package cn.aylog.conf;

import cn.aylog.pojo.User;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Import;

import javax.annotation.Resource;

@Configurable
@Import({JdbcConfig.class})
public class Configuration {

    @Resource
    private String driver;

    @Bean
    public User getUser() {
        System.out.println(driver);
        return new User();
    }
}
